/*
* 游戏中心路由
* * 注意：子路由的path他妈不能写绝对路径
*/
import games from "@/views/games/games.vue"
import index from '@/views/games/index/index.vue';
export const routeMapGames = [
	{
		path:'/games',
		// name: 'games',//如果有子路由，一级路由设置name会警告
		component:games,
		meta: { title: '游戏中心' },
		children:[
			{
				//默认子路由直接显示
				path:'/',
				redirect:'index'
			},
			{
				//默认子路由直接显示
				path:'index',
				name:'gameIndex',
				redirect:'/main/farm',
				component: index,
			},

		]
	},
	
	{
		path: '/contestHall',		//赛事大厅
		name:'contestHall',
		component: () => import('../views/contestHall/contestHall'),
	},
	{
		path: '/contest/:id',		//赛事详情
		name:'contest',
		component: () => import('../views/contestHall/contest'),
	},
]
